import java.util.Scanner;

/*
    判断字符串是否对称,12321,111
 */
public class MirrorString {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串");
        String s1 = sc.nextLine();

        StringBuilder sb = new StringBuilder(s1);
        sb.reverse();//sb本身反转
        String s2 = sb.toString();//转换为String类型,容器接收

        if (s1.equals(s2)){//String同类型比较
            System.out.println("是");
        }else System.out.println("不是");
    }
}
